﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Organization.Infrastructure.Migrations
{
    public partial class baobiao : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "DeliveryDay",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    EweOverbit = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    PrenatalCheckDay = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Cottage = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Field = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    HybridizationDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ConfinementDate = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_DeliveryDay", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "PrenatalCheck",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    EweOverbit = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    PrenatalCheckDay = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Cottage = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Field = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    State = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PrenatalCheck", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "PromptBreeding",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    EweOverbit = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    EmptyDays = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Cottage = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Field = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    ReproductiveState = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    EventDate = table.Column<DateTime>(type: "datetime2", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_PromptBreeding", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "DeliveryDay");

            migrationBuilder.DropTable(
                name: "PrenatalCheck");

            migrationBuilder.DropTable(
                name: "PromptBreeding");
        }
    }
}
